import request from '@/utils/request'

// 查询数据中台-患者药品申请列表
export function listDrugApply(query) {
    return request({
        url: '/dataCenter/DrugApply/list',
        method: 'get',
        params: query
    })
}

// 查询数据中台-患者药品申请详细
export function getDrugApply(id) {
    return request({
        url: '/dataCenter/DrugApply/' + id,
        method: 'get'
    })
}

// 新增数据中台-患者药品申请
export function addDrugApply(data) {
    return request({
        url: '/dataCenter/DrugApply',
        method: 'post',
        data: data
    })
}

// 修改数据中台-患者药品申请
export function updateDrugApply(data) {
    return request({
        url: '/dataCenter/DrugApply',
        method: 'put',
        data: data
    })
}

// 删除数据中台-患者药品申请
export function delDrugApply(id) {
    return request({
        url: '/dataCenter/DrugApply/' + id,
        method: 'delete'
    })
}
